/**
 * Created by malingling on 15-12-15.
 */
app.controller ('SelectComboCtrl', function ($scope, $location) {
    $.ajaxSettings.async = false;
    $.getJSON('../json/combo.json',function(data){
       var restaurant = localStorage.getItem ('restaurant');

       $scope.combos = data[restaurant];
   });
    $scope.back_to_menu = function(name,price){
        localStorage.setItem('combo_name',name);
        localStorage.setItem('combo_price',price);
        $location.path('select_menu')
    }


})


